<template>
  <div class="right-container">
    <h3>right组件</h3>
    <hr />
    <button @click="postInfo">发起post请求</button>
  </div>
</template>

<script>
// import axios from "axios";
export default {
  methods: {
    async postInfo() {
      const { data: res } = await this.$http.post("/test/learn-web", {
        demo: "demo of vue post",
        name: "dodayum",
        age: 13,
      });
      console.log(res);
    },
  },
};
</script>

<style lang='less' scoped>
.right-container {
  background-color: skyblue;
  min-height: 200px;
  flex: 1;
}
</style>